import request from '@/util/request'

export function insertCompanyRole(data) {
  return request({
    url: '/iot/company/role/insert',
    method: 'post',
    data
  })
}

export function deleteCompanyRole(data) {
  return request({
    url: '/iot/company/role/delete',
    method: 'post',
    data
  })
}

export function listCompanyRole(data) {
  return request({
    url: '/iot/company/role/list',
    method: 'post',
    data
  })
}

export function getCompanyRole(data) {
  return request({
    url: '/iot/company/role/get',
    method: 'post',
    data
  })
}

export function updateCompanyRole(data) {
  return request({
    url: '/iot/company/role/update',
    method: 'post',
    data
  })
}

export function pageGetCompanyRole(data) {
  return request({
    url: '/iot/company/role/pageGet',
    method: 'post',
    data
  })
}
export function setMenuCompanyRole(data) {
  return request({
    url: '/iot/company/role/setMenu',
    method: 'post',
    data
  })
}

